﻿#pragma once
#include "StringEditEntry.h"

class RectEditEntry : public StringEditEntry {
    Q_OBJECT
    struct RectEditEntryPrivate;
    QScopedPointer<RectEditEntryPrivate> p;
public:
    virtual ~RectEditEntry();
    explicit RectEditEntry(QWidget *parent = nullptr);
    void setValue(const QRect &rect);
    QRect value() const;
signals:
    void valueChanged(const QRect &value);
private slots:
    void onChildEntryValueChanged();
private:
    void initUi();
    void retranslateUi();
};
